<?php /* One ad shows offers as follows,
1) 10 Pens, 10 Pencils, 10 Erasers - Rs. 100 
2) 5 Pens, 10 Pencils, 20 Erasers - Rs 80
3) 20 Pens, 5 Pencils, 10 Erasers - Rs 140

Individual price for a Pen - Rs. 6, a Pencil - Rs. 3, an Eraser - Rs. 2.

Based on the individual price, Please tell which offer is maximum saver.
*/ ?>
<?php
$pen = 6;
$pencil = 3;
$eraser = 2;

$offer1 = 100;
$offer2 = 80;
$offer3 = 140;

$withoutoffer1 = 110;
$withoutoffer2 = 100;
$withoutoffer3 = 155;

$off1 = $withoutoffer1 - $offer1;
$off2 = $withoutoffer2 - $offer2;
$off3 = $withoutoffer3 - $offer3;


if($off1>$off2 && $off1>$off3)
{
 echo 'max saver offer1';
}
elseif($off2>$off3) 
{
 echo 'max saver offer2';
}
else
{
 echo 'max saver offer3';
}
?>